// ===============================================
// app_pages
//
// Create by will on 2021/10/25 12:05
// Copyright @polynesia.All rights reserved.
// ===============================================

import 'package:get/get.dart';

import '../page/app_main/app_main_view.dart';
import '../page/profile/login/login_view.dart';
import '../page/profile/settings/settings_view.dart';
import '../page/splash/splash_view.dart';

part 'app_routes.dart';

class AppPages {
  AppPages._();

  static const String INITIAL = _Paths.splash;

  static final List<GetPage<dynamic>> routes = <GetPage<dynamic>>[
    ///闪屏路由
    GetPage<dynamic>(
      name: _Paths.splash,
      page: () => const SplashView(),
      transition: Transition.zoom,
    ),

    GetPage<dynamic>(
      name: _Paths.appMain,
      page: () => const AppMainView(),
      transition: Transition.zoom,
    ),

    // GetPage<dynamic>(
    //   name: _Paths.home,
    //   page: () => const HomeView(),
    //   transition: Transition.noTransition,
    // ),
    // GetPage<dynamic>(
    //   name: _Paths.search,
    //   page: () => const SearchPageView(),
    //   transition: Transition.noTransition,
    // ),
    // GetPage<dynamic>(
    //   name: _Paths.push,
    //   page: () => const PushView(),
    //   transition: Transition.noTransition,
    // ),
    // GetPage<dynamic>(
    //   name: _Paths.video,
    //   page: () => const VideoView(),
    //   transition: Transition.noTransition,
    // ),
    // GetPage<dynamic>(
    //   name: _Paths.profile,
    //   page: () => const ProfileView(),
    //   transition: Transition.noTransition,
    // ),
    GetPage<dynamic>(
      name: _Paths.settings,
      page: () => const SettingsView(),
      transition: Transition.cupertino,
    ),

    GetPage<dynamic>(
      name: _Paths.login,
      page: () => const LoginView(),
      transition: Transition.cupertino,
    ),
  ];
}
